package cn.codeforfun.controller;

import cn.codeforfun.interceptor.WxMsg;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/callback")
public class CallbackController {

  @RequestMapping
  public String callback(@WxMsg WxMpXmlMessage message) {
    System.out.println(message.getFromUser());
    System.out.println(message.getContent());
    return "";
  }

}
